package com.study.talk.data.model.vo;



import com.study.talk.data.model.UserInfo;

import java.util.List;

//"动态参数"
public class MomentVo {

    //"发布者id"
    private Integer userId;

    //"发布者图片"
    private String avatar;

    //"发布者名称"
    private String userName;

    //"动态图片"
    private List<String> photos;

    //"动态内容"
    private String content;

    public MomentVo(Integer userId, String avatar, String userName, List<String> photos, String content) {
        this.userId = userId;
        this.avatar = avatar;
        this.userName = userName;
        this.photos = photos;
        this.content = content;
    }

    public MomentVo(UserInfo userInfo,List<String> photos, String content){
        this.userId = userInfo.getId();
        this.avatar = userInfo.getAvatar();
        this.userName = userInfo.getUsername();
        this.photos = photos;
        this.content = content;
    }

    public MomentVo() {
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public List<String> getPhotos() {
        return photos;
    }

    public void setPhotos(List<String> photos) {
        this.photos = photos;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
